/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const listenerRouter = {
  path: '/listener',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Listener',
  alwaysShow: true,
  meta: {
    title: '监控执行',
    icon: 'el-icon-monitor',
    permission: '/listener'
  },
  children: [
    {
      path: 'cache',
      component: () => import('@/views/listener/cache/index'),
      name: 'ListenerCache',
      meta: { title: '缓存监控', icon: 'el-icon-hot-water', noCache: true, permission: '/listener/cache' }
    },
    {
      path: 'performance',
      component: () => import('@/views/listener/performance/index'),
      name: 'Performance',
      meta: { title: '性能监听', icon: 'performance', noCache: true, permission: '/listener/performance' }
    }
  ]
}

export default listenerRouter
